package cn.fws.meap.web.controller;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import cn.fws.framework.web.contoller.JsonResponse;

@FeignClient(value = "fws-upc-server",path = "upc/user")
public interface WeChatUserController {

    @PostMapping("/bindWx")
    String bindWx(@RequestParam("loginName") String loginName, @RequestParam("password") String password, @RequestParam("openid") String openid);

    @PostMapping("/releaseBindWx")
    boolean releaseBindWx(@RequestParam("openid")String openid);

    @PostMapping("/getUrlForWx")
    JsonResponse getUrlForWx(@RequestParam("openid")String openid);
}
